home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
earcd
/
util
/
rexx
/
savetime.lha
/
savetime.readme
< prev
Wrap
Text File
|
1997-02-18
|
2KB
|
60 lines
Short: 1.0 - Miami script to save the ntp time
Author: geohei@ibm.net (Georges Heinesch)
Uploader: geohei@ibm.net (Georges Heinesch)
Type: util/rexx
Version: 1.0 (18 Feb 1997)
Requires: Miami 1.1 or better
$VER: savetime.miami 1.0 (18 Feb 1997)
savetime.miami for Miami 1.1 or better
© Georges Heinesch <geohei@ibm.net>, Luxembourg
http://www.geocities.com/yosemite/2480
PGP 2.6.3i public key available on request and on public servers
This script should be used when requesting the correct time from an ntp
server (time server). If an ntp server is queried, it updates the system
time. This script saves this updated time to the battery clock of the Amiga
and optionally creates a logfile to keep track of the correction applied to
the system time.
To get an address from an adequate ntp server, have a look at
'http://www.cis.udel.edu/~mills/ntp/servers.html'. Choose one and insert
the address into the relevant string gadget (bottom of 'TCP/IP' page).
Don't forget to activate the 'Get Time' switch.
Then enter the path/name of this script (e.g. ARexx/savetime.miami) into
the 'Online' string gadget ('Events' page). This starts the script as soon
as the ntp server transmitted the time information.
Optionally, the corrections applied to the current system time can be
logged to a file. If this is desired, set the 'log' variable to 'true'
(default is 'true') and enter the path/name of the log file (default is
'Miami_Time.log').
Example of a log file:
Date old time ntp time error
--------- -------- -------- ---------
02-Feb-97 19:05:34 19:05:35 -00:00:01
02-Feb-97 19:08:54 19:08:55 -00:00:01
02-Feb-97 19:16:06 19:16:06 -00:00:02
02-Feb-97 19:19:29 19:19:29 -00:00:02
02-Feb-97 19:20:49 19:20:49 -00:00:02
The variable 'secdelta' takes system speed into account and has to be set
accordingly. Fast systems use 1 (68060), slow system 2 or 3 (68020). To
find the correct value, run the script a couple of times with the log
option enabled and analyse the log file. The average of the time errors is
the value to enter here (in seconds).
$HISTORY:
18 Feb 1997 : 1.0 : First release.